package com.imonsoft.sqm.dao.business.ipic_system;

import com.imonsoft.sqm.pojo.business.ipic_system.ClaimView;
import com.imonsoft.sqm.pojo.business.ipic_system.ClaimViewExample;
import java.util.List;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springframework.stereotype.Repository;

@SuppressWarnings("deprecation")
@Repository("claimViewDAO")
public class ClaimViewDAOImpl extends SqlMapClientDaoSupport implements ClaimViewDAO {

	/**
	 * This method was generated by Apache iBATIS ibator. This method corresponds to the database table tv_claim
	 * @ibatorgenerated  Sat Jun 08 16:11:27 CST 2013
	 */
	public ClaimViewDAOImpl() {
		super();
	}

	/**
	 * This method was generated by Apache iBATIS ibator. This method corresponds to the database table tv_claim
	 * @ibatorgenerated  Sat Jun 08 16:11:27 CST 2013
	 */
	public int countClaimViewByExample(ClaimViewExample example) {
		Integer count = (Integer) getSqlMapClientTemplate().queryForObject(
				"tv_claim.ibatorgenerated_countByExample", example);
		return count;
	}

	/**
	 * This method was generated by Apache iBATIS ibator. This method corresponds to the database table tv_claim
	 * @ibatorgenerated  Sat Jun 08 16:11:27 CST 2013
	 */
	public int deleteClaimViewByExample(ClaimViewExample example) {
		int rows = getSqlMapClientTemplate().delete(
				"tv_claim.ibatorgenerated_deleteByExample", example);
		return rows;
	}

	/**
	 * This method was generated by Apache iBATIS ibator. This method corresponds to the database table tv_claim
	 * @ibatorgenerated  Sat Jun 08 16:11:27 CST 2013
	 */
	public void insertClaimView(ClaimView record) {
		getSqlMapClientTemplate().insert("tv_claim.ibatorgenerated_insert",
				record);
	}

	/**
	 * This method was generated by Apache iBATIS ibator. This method corresponds to the database table tv_claim
	 * @ibatorgenerated  Sat Jun 08 16:11:27 CST 2013
	 */
	public void insertClaimViewSelective(ClaimView record) {
		getSqlMapClientTemplate().insert(
				"tv_claim.ibatorgenerated_insertSelective", record);
	}

	/**
	 * This method was generated by Apache iBATIS ibator. This method corresponds to the database table tv_claim
	 * @ibatorgenerated  Sat Jun 08 16:11:27 CST 2013
	 */
	@SuppressWarnings("unchecked")
	public List<ClaimView> selectClaimViewByExample(ClaimViewExample example) {
		List<ClaimView> list = getSqlMapClientTemplate().queryForList(
				"tv_claim.ibatorgenerated_selectByExample", example);
		return list;
	}

	/**
	 * This method was generated by Apache iBATIS ibator. This method corresponds to the database table tv_claim
	 * @ibatorgenerated  Sat Jun 08 16:11:27 CST 2013
	 */
	public int updateClaimViewByExampleSelective(ClaimView record,
			ClaimViewExample example) {
		UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
		int rows = getSqlMapClientTemplate().update(
				"tv_claim.ibatorgenerated_updateByExampleSelective", parms);
		return rows;
	}

	/**
	 * This method was generated by Apache iBATIS ibator. This method corresponds to the database table tv_claim
	 * @ibatorgenerated  Sat Jun 08 16:11:27 CST 2013
	 */
	public int updateClaimViewByExample(ClaimView record,
			ClaimViewExample example) {
		UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
		int rows = getSqlMapClientTemplate().update(
				"tv_claim.ibatorgenerated_updateByExample", parms);
		return rows;
	}

	/**
	 * This class was generated by Apache iBATIS ibator. This class corresponds to the database table tv_claim
	 * @ibatorgenerated  Sat Jun 08 16:11:27 CST 2013
	 */
	private static class UpdateByExampleParms extends ClaimViewExample {
		private Object record;

		public UpdateByExampleParms(Object record, ClaimViewExample example) {
			super(example);
			this.record = record;
		}

		public Object getRecord() {
			return record;
		}
	}
}